package com.sgb.kjwl.model.entity.manage;

import android.text.TextUtils;

import java.io.Serializable;
import java.util.List;

public class UpdataSpecialQualificationEntity implements Serializable {
    /**
     * address : 测试
     * companyNo : 202003162455984
     * companyName : 华强科技有限公司
     * name : xp测试添加11-09
     * logo : null
     * id : 881
     * type : 房建工程
     */
    private String address;
    private String companyNo;
    private String companyName;
    private String name; //资质名称
    private String logo;
    private String id; //资质id
    private String type; //资质类型
    private String qualificationTypeNo; //资质类型No
    private String companyId;
    private String image;
    private String qualificationClassNo; //资质等级编号
    private String qualificationClassName; //资质等级
    private long registerTime; //登记时间
    private String recordUnit;
    private String showPermission; //展示权限1:所有2会员
    private String showPermissionName; //展示权限1:所有2会员
    private String provinceId = ""; //备案单位所在省份id
    private String provinceName = ""; //备案单位所在省份名称
    private String recordEnterName = ""; //备案单位
    private String recordEnterNo; //备案单位no
    private String qualificationNumber;//资质编号
    private String issuingAuthority;//发证单位
    private String certificateTime;//发证时间

    public String getIndustryTypeNo() {
        return industryTypeNo;
    }

    public void setIndustryTypeNo(String industryTypeNo) {
        this.industryTypeNo = industryTypeNo;
    }

    private String industryTypeNo;//行业分类no

    public String getIndustryTypeName() {
        return industryTypeName;
    }

    public void setIndustryTypeName(String industryTypeName) {
        this.industryTypeName = industryTypeName;
    }

    private String industryTypeName;//行业分类name
    private List<AddItemEntity> customFieldList;

    public List<AddItemEntity> getCustomFieldList() {
        return customFieldList;
    }

    public void setCustomFieldList(List<AddItemEntity> customFieldList) {
        this.customFieldList = customFieldList;
    }

    public String getQualificationNumber() {
        return qualificationNumber;
    }

    public void setQualificationNumber(String qualificationNumber) {
        this.qualificationNumber = qualificationNumber;
    }

    public String getIssuingAuthority() {
        return issuingAuthority;
    }

    public void setIssuingAuthority(String issuingAuthority) {
        this.issuingAuthority = issuingAuthority;
    }

    public long getCertificateTime() {
        if (TextUtils.isEmpty(certificateTime)){
            return 0;
        }
        return Long.parseLong(certificateTime);
    }

    public void setCertificateTime(String certificateTime) {
        this.certificateTime = certificateTime;
    }

    public String getShowPermissionName() {
        if ("1".equals(showPermission)){
            showPermissionName = "所有人可见";
        }else  if ("2".equals(showPermission)){
            showPermissionName = "仅会员可见";
        }else  if ("3".equals(showPermission)){
            showPermissionName = "仅自己可见";
        }
        return showPermissionName;
    }

    public void setShowPermissionName(String showPermissionName) {
        this.showPermissionName = showPermissionName;
    }

    public String getQualificationTypeNo() {
        return qualificationTypeNo;
    }

    public void setQualificationTypeNo(String qualificationTypeNo) {
        this.qualificationTypeNo = qualificationTypeNo;
    }

    public String getQualificationClassNo() {
        return qualificationClassNo;
    }

    public void setQualificationClassNo(String qualificationClassNo) {
        this.qualificationClassNo = qualificationClassNo;
    }

    public String getShowPermission() {
        return showPermission;
    }

    public void setShowPermission(String showPermission) {
        this.showPermission = showPermission;
    }

    public String getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getRecordEnterName() {
        return recordEnterName;
    }

    public void setRecordEnterName(String recordEnterName) {
        this.recordEnterName = recordEnterName;
    }

    public String getRecordEnterNo() {
        return recordEnterNo;
    }

    public void setRecordEnterNo(String recordEnterNo) {
        this.recordEnterNo = recordEnterNo;
    }

    public String getRecordUnit() {
        return recordUnit;
    }

    public void setRecordUnit(String recordUnit) {
        this.recordUnit = recordUnit;
    }

    public long getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(long registerTime) {
        this.registerTime = registerTime;
    }

    public String getQualificationClassName() {
        return qualificationClassName;
    }

    public void setQualificationClassName(String qualificationClassName) {
        this.qualificationClassName = qualificationClassName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }
}
